<html>
    <head>
        <title>Printing ux SimplePrint Example</title>

        <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.4.0/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.4.0/ext-all.js"></script>
        <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.4.0/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.4.0/examples/shared/examples.css" />
        <script src="http://www.openlayers.org/api/2.11/OpenLayers.js"></script>
        <script type="text/javascript" src="../../../../geoext/lib/GeoExt.js"></script>
        
        <!-- script resources for this ux -->
        <script type="text/javascript" src="../lib/GeoExt.ux/SimplePrint.js"></script>
        
        <script type="text/javascript" src="SimplePrint.js"></script>
        
        <!--
        Using the script tag method to get the print service capabilities and
        make them available in the printCapabilities variable.
        The script tag below can be removed when configuring the printProvider
        with url instead of capabilities
        -->
        <script type="text/javascript" src="http://demo.opengeo.org/geoserver/pdf/info.json?var=printCapabilities"></script>
        
    </head>
    <body>
        <h1>SimplePrint Form using GeoExt.data.PrintProvider</h1>
        
        <p>This example shows how to use GeoExt.ux.SimplePrint to talk
        to the <a href="http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleInstallation">Mapfish print module</a>,
        which also runs inside the
        <a href="http://docs.geoserver.org/stable/en/user/community/printing/">GeoServer printing module</a>.</p>
        
        <p>The rectangle and handles on the map can be used to change center,
        scale and rotation. Dragging one of the handles will change the scale.
        Dragging the corner handles on their edges will rotate the extent, if
        supported by the layout. Holding the SHIFT key will constrain rotation
        to 45&deg; steps.</p>
        
        <p>Note that this example uses GET requests to communicate with the
        print servlet (provided by the OpenGeo demo server). This saves us a
        proxy, but has limitations (URL length in Internet Explorer, and
        character encoding issues). For production use, the POST method is
        recommended.</p>
        
        <p>See <a href="SimplePrint.js">SimplePrint.js</a> for the source code.</p>
        
        <div id="content"></div>
    </body>
</html>
